<#include "/view/common/command/para.html">
<div id="TaskQuery">
<div class="zs-ibox">
  <input type="button" value="新建" class="zs-btn" ng-click="onCreateClick()" style="float: right;position: absolute;right: 0;">
         <table class="zs-form-tab" width="100%">
            <tbody>
            <tr>
             <td style="width:50px">站点</td>
             <td> 
                <ul  class="zs-data-sizer" id="pointName" style="float:left">
                  <li ng-click="getPointName('')" orgid="-1" ><a href="#" >全部</a></li>
                  <li ng-click="getPointName('0')" orgid="0" class="selected"><a href="#" >{{selectedModel.STATION_NAME}}</a></li>
	             </ul>
               </td>
             </tr>
            </tbody>
        </table>
        <table  class="zs-form-tab" width="100%">
         <tbody>
             <tr>
              <td style="width:50px">时间</td>
              <td>
               &nbsp;
              <label>起始日期</label>
              <ag-Datebox class="zs-input" show-curday="true" add-days="-5" ng-change="checkErr();"
						ng-model="start" ></ag-Datebox>
						&nbsp;
			   <label>结束日期</label>
			   &nbsp;
			   <ag-Datebox class="zs-input" show-curday="true" ng-change="checkErr();"
						ng-model="end" ></ag-Datebox>
				<input type="button" value="查询" class="zs-btn" ng-click="getDataComparisonSummaryList()"> 
              </td>
             </tr>
         </tbody>
        </table>
</div>
<div class="zs-ibox" ng-style="{'overflow':'auto',height:(Map_H-80)+'px',width:(Map_W)+'px'}">
     <table class="zs-data-tab report" style="float: left; border: 1px solid rgb(232, 232, 232);width="99%"">
        <thead>
            <tr>
                <th class="head" style="text-align:left;border-right: 1px solid #E8E8E8;height: 28px;min-width:280px;width:280px;">监测点</th>
                <th class="head" style="text-align:left;border-right: 1px solid #E8E8E8;height: 28px;min-width:90px;width:90px;">报告时间</th>
                <th class="head" style="text-align:left;border-right: 1px solid #E8E8E8;height: 28px;min-width:120px;width:120px;">报告编号</th>
                <th class="head" style="text-align:left;border-right: 1px solid #E8E8E8;height: 28px;min-width:260px;width:260px;">企业单位</th>
                <th class="head" style="text-align:left;border-right: 1px solid #E8E8E8;height: 28px;min-width:220px;width:220px;">运行单位</th>
                <th class="head" style="text-align:left;border-right: 1px solid #E8E8E8;height: 28px;min-width:60px;width:60px;">报告输出</th>
                <th class="head" style="text-align:left;border-right: 1px solid #E8E8E8;height: 28px;min-width:60px;width:60px;">详情</th>
                <th class="head" style="text-align:left;border-right: 1px solid #E8E8E8;height: 28px;min-width:100px;width:60px;">编辑</th>
                <th class="head" style="text-align:left;border-right: 1px solid #E8E8E8;height: 28px;min-width:160px;width:160px;">监测参数</th>
                <th class="head" style="text-align:left;border-right: 1px solid #E8E8E8;height: 28px;min-width:70px;width:70px;">上传附件</th>
            </tr>
        </thead>
        <tbody>
           <tr ng-repeat="curRow in dataComparisonList">
         		 <td class="left data_column" ><span ng-show="curRow.POINTNAME!=null">{{curRow.POINTNAME}}</span></td>
         		 <td class="left data_column" ><span ng-show="curRow.DATATIME!=null">{{curRow.DATATIME|limitTo:10}}</span></td>
         		 <td class="left data_column" ><span ng-show="curRow.REPORTNUMBER!=null">{{curRow.REPORTNUMBER}}</span></td>
         		 <td class="left data_column" ><span ng-show="curRow.COMPANYNAME!=null">{{curRow.COMPANYNAME}}</span></td>
         		 <td class="left data_column" ><span ng-show="curRow.REALOPERATIONCOMPANY!=null">{{curRow.REALOPERATIONCOMPANY}}</span></td>
         		 <td class="left data_column">
         		 	<input ng-show="curRow.ISINTACT==1" type="button" class="zs-btn" ng-click="onDownWord(curRow)" value="下载">
         		 	<input ng-show="curRow.ISINTACT!=1" type="button" class="zs-btn-gray" value="下载">
         		 </td>
         		 <td class="left data_column"><input type="button" class="zs-btn" ng-click="onViewDetail(curRow)" value="查看"></td>
         		 <td class="left data_column">
         			 <input type="button" class="zs-btn" ng-click="onEditClick(curRow)" value="编辑">
         		 	<input type="button" class="zs-btn" ng-click="onDelClick(curRow)" value="删除">
         		 </td> 
         		 <td class="left data_column"><span ng-show="curRow.PARMNAME!=null">{{curRow.PARMNAME}}</span></td>
         		 <td class="left data_column">
         		 	 <input ng-show="curRow.ISINTACT==1" type="button" ng-click="onUploadClick(curRow)" class="zs-btn" value="上传"> 
         		 	 <input ng-show="curRow.ISINTACT!=1" type="button" class="zs-btn-gray" value="上传"> 
         		  </td> 

            </tr>
        </tbody>
    </table>
    
<!--     ng-click="onUpPhoto(curRow)" -->
<!--    <input type="button" class="zs-btn-gray" value="上传"> -->
<!-- <a style="cursor: pointer" ng-click="onEditClick(curRow)">编辑</a> &nbsp; -->
<!--     <a style="cursor: pointer" ng-click="onViewDetail(curRow)">查看</a> &nbsp; -->
<!--     <a style="cursor: pointer" ng-click="onDownWord(curRow)">下载</a> &nbsp; -->
<!--     <a style="cursor: pointer" ng-click="editCompany(curRow)">上传</a> &nbsp; -->
    
<!--     <div class="zs-page">  -->
<!--                <a ng-click="waterDataCommon.firstPage(httpData.TaskList,queryObj.QueryTaskObj)">首页</a> -->
<!-- 		        <a class="pre" ng-click="waterDataCommon.prePage(httpData.TaskList,queryObj.QueryTaskObj)">上一页</a> -->
<!-- 		        <a class="next" ng-click="waterDataCommon.nextPage(httpData.TaskList,queryObj.QueryTaskObj)">下一页</a> -->
<!-- 		        <a ng-click="waterDataCommon.lastPage(httpData.TaskList,queryObj.QueryTaskObj)">尾页</a> -->
<!--                 <a > -->
<!--                     <label ng-bind="httpData.TaskList.pageInfo.pageIndex"></label> -->
<!--                 </a>  -->
<!--                 <a > -->
<!--                     <label ng-bind="httpData.TaskList.pageInfo.pageCount"></label> -->
<!--                 </a> -->
<!--      </div> -->
   </div>
 </div>
 
<div com-dialog width="800" height="248" title="基本信息" ng-model="createDialog" >
	<#include "${viewDir}/WasteWater/DataComparison/create.html">
</div>
<div com-dialog width="800" height="248" title="基本信息" ng-model="editDialog" >
	<#include "${viewDir}/WasteWater/DataComparison/edit.html">
</div>
<div com-dialog width="400" height="140" title="基本信息" ng-model="uploadDialog" >
	<#include "${viewDir}/WasteWater/DataComparison/upload.html">
</div>